package com.wmyg.antifake.dao;

import com.wmyg.antifake.bean.Picture;
import com.wmyg.antifake.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface PictureMapper {


    List<Picture> selectPic(@Param("targetType") int targetType, @Param("targetId") String targetId,
                            @Param("picType") Integer picType);

    int insertBatch(@Param("list") List<Picture> list);

    int deleteByCondition(@Param("targetType") int targetType, @Param("targetId") String targetId,
                          @Param("picType") int picType);

    int deletePrimaryId(@Param("picId") int picId);


    Picture selectPrimaryId(@Param("picId") int picId);
}
